package com.dk.service.Impl;

import com.dk.mapper.KcMapper;
import com.dk.pojo.Kcardinfo;
import com.dk.pojo.Kcb;
import com.dk.pojo.Kcinfo;
import com.dk.service.KcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("kcService")
public class KcServiceImpl implements KcService {

    @Autowired
    private KcMapper kcMapper;
    @Override
    public List<Kcinfo> FindAll() {
        return kcMapper.FindAll();
    }

    @Override
    public void Add(Kcinfo kcinfo) {
        kcMapper.Add(kcinfo);
    }

    @Override
    public void Dele(String classid) {
        kcMapper.Dele(classid);
    }

    @Override
    public List<Kcinfo> UserFind(String name) {
        return kcMapper.UserFind(name);
    }
//排课表
    @Override
    public List<Kcardinfo> FindAllkcb() {
        return kcMapper.FindAllkcb();
    }

    @Override
    public void Addkcb(Kcardinfo kcardinfo) {

        System.out.println(kcardinfo.toString());
        kcMapper.Addkcb(kcardinfo);
    }

    @Override
    public void Delekcb(int kcid) {

        kcMapper.Delekcb(kcid);
    }

    @Override
    public List<Kcinfo> UserFindkcb(String name) {
        return kcMapper.UserFindkcb(name);
    }

    @Override
    public List<Kcb> FinaUserkcb(String suser) {
        return kcMapper.FinaUserkcb(suser);
    }
}
